import store from '@/store'
export default {
  methods: {
    checkPermission(key) {
      try {
        // return this.$store.state.user.userInfo.roles.points.includes(key)
        return store.state.user.userInfo.roles.points.includes(key)
      } catch (e) {
        console.log(e)
        return false
      }
    }
  }
}
